package com.umessage.letsgo.core.extensions.springsecurity.random;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import javax.security.auth.Subject;
import java.util.Collection;

/**
 * Created by zhajl on 16/12/8.
 */
public class RandomAuthenticationToken extends UsernamePasswordAuthenticationToken {
    private String random;

    public RandomAuthenticationToken(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public RandomAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }

    public String getRandom() {
        return random;
    }

    public void setRandom(String random) {
        this.random = random;
    }
}
